//
//  OSAddTagToolbar.m
//  百思不得姐
//
//  Created by PushMeBaby on 16/3/8.
//  Copyright © 2016年 CoderC. All rights reserved.
//

#import "OSAddTagToolbar.h"

@interface OSAddTagToolbar()

@property (weak, nonatomic) IBOutlet UIView *topView;

@property (nonatomic,weak)UIButton *addButton;

@property (nonatomic,strong)NSMutableArray *tagLabels;


@end

@implementation OSAddTagToolbar


-(NSMutableArray *)tagLabels{
    if (!_tagLabels) {
        _tagLabels = [NSMutableArray array];
        
    }
    
    return _tagLabels;
}
-(void)awakeFromNib{
    UIButton *addButton = [[UIButton alloc]init];
    [addButton addTarget:self action:@selector(addButtonClick) forControlEvents:UIControlEventTouchUpInside];
    [addButton setImage:[UIImage imageNamed:@"tag_add_icon"] forState:UIControlStateNormal];
    addButton.size = addButton.currentImage.size;
    addButton.x = 5;
    [self.topView addSubview:addButton];
    self.addButton = addButton;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
